package com.wang.tool.event;

import com.wang.tool.common.ErrorInfo;

/**
 * @Author wangshaopeng
 * @Date 2022/6/11
 */
public class HandleResult {

    /**
     * 监听者id
     */
    private String id;

    /**
     * 结果
     */
    private Object result;

    /**
     * 异常
     */
    private ErrorInfo error;

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public ErrorInfo getError() {
        return error;
    }

    public void setError(ErrorInfo error) {
        this.error = error;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "HandleResult{" +
                "id='" + id + '\'' +
                ", result=" + result +
                ", error=" + error +
                '}';
    }
}
